package domain.service.base;

import domain.dao.base.TunnelBaseDao;
import domain.dao.base.TunnelCompanyDao;
import domain.entity.TunnelBase;
import domain.entity.TunnelCompany;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by bowen on 2017-08-14.
 */
@Service
public class TunnelCompanyService {

    @Autowired
    private TunnelCompanyDao tunnelCompanyDao;

    public List<TunnelCompany> getTunnelCompanyList() {
        return tunnelCompanyDao.getTunnelCompanyList();
    }

    public Long getTunnelCompanyCount(){
        return tunnelCompanyDao.getTunnelCompanyCount();
    }
}
